package com.ssy.lingxi.open.api.repository;

import com.ssy.lingxi.open.api.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

/**
 * 用户持久化层
 * @author jw.chen
 * @version 2.0.0
 * @date 2021/10/12
 */
public interface UserRepository extends JpaRepository<User,Long>, JpaSpecificationExecutor<User> {
    User findFirstByAccountAndPassword(String account, String pass);
}
